#include "Referee_System.h"

__attribute__((section (".AXI_SRAM"))) uint8_t Referee_MultiRx_Buf[2][Referee_Info_Max_Length];


void Referee_Frame_Update(uint8_t *Buff){




}


float bit32TOfloat32(uint32_t Change_Info)
{
	union
	{
    float float32;
		uint32_t  byte;
	}u32val;

  u32val.byte = Change_Info;

	return u32val.float32;
}



uint8_t float32TObit8(uint8_t i,float change_info)
{
	union
	{
    float float32;
		uint8_t  byte[4];
	}u32val;

  u32val.float32 = change_info;

	return u32val.byte[i];
}

float bit8TOfloat32(uint8_t change_info[4])
{
	union
	{
    float float32;
		uint8_t  byte[4];
	}u32val;

  u32val.byte[0] = change_info[0];
  u32val.byte[1] = change_info[1];
  u32val.byte[2] = change_info[2];
  u32val.byte[3] = change_info[3];

	return u32val.float32;
}